import Vue from 'vue'
import Router from 'vue-router'
const Bootpage = () => import('@/components/Bootpage')
const Login = () => import('@/components/Login')
const Register = () => import('@/components/Register')
const Changepass = () => import('@/components/Changepass')

const Home = () => import('@/components/Home')

const Lookpic = () => import('@/components/Lookpic')
const Space = () => import('@/components/Space')
const Style = () => import('@/components/Style')
const Hardclo = () => import('@/components/Hardclo')
const Softloa = () => import('@/components/Softloa')
const Hottest = () => import('@/components/Hottest')

const Build = () => import('@/components/Build')
const Builddetail = () => import('@/components/Builddetail')
const Shop = () => import('@/components/Shop')
const Novice = () => import('@/components/Novice')
const Mustsee = () => import('@/components/Mustsee')

const User = () => import('@/components/User')
const UserInfo = () => import('@/components/UserInfo')
const Collection = () => import('@/components/Collection')
const Cart = () => import('@/components/Cart')
const Comment = () => import('@/components/Comment')
const Cartlist = () => import('@/components/Cartlist')

const Payment = () => import('@/components/Payment')
const Shipped = () => import('@/components/Shipped')
const Received = () => import('@/components/Received')
const Evaluated = () => import('@/components/Evaluated')
const Orderdetails = () => import('@/components/Orderdetails')
const Usercomment = () => import('@/components/Usercomment')
const Immediate = () => import('@/components/Immediate')

const Buildstatus = () => import('@/components/Buildstatus')
const Focus = () => import('@/components/Focus')
const Designer = () => import('@/components/Designer')
const Designercheck = () => import('@/components/Designercheck')
const Setup = () => import('@/components/Setup')
const Settel = () => import('@/components/Settel')
const Setbank = () => import('@/components/Setbank')
const Setaddress = () => import('@/components/Setaddress')
const Adres = () => import('@/components/Adres')

const Card = () => import('@/components/Card')
const Footer = () => import('@/components/Footer')

const Grow = () => import('@/components/Grow')
const Growdetails = () => import('@/components/Growdetails')
const Goodsdetail = () => import('@/components/Goodsdetail')
const Constructor = () => import('@/components/Constructor')
const Posting= () =>import('@/components/Posting')

const Special= () =>import('@/components/Special')
const Specialall = () =>import('@/components/Specialall')
const Spaceinsp = () =>import('@/components/Spaceinsp')
const Hotspot= () =>import('@/components/Hotspot')
const Hotyear= () =>import('@/components/Hotyear')

const Topic= () =>import('@/components/Topic')
const Topicsall= () =>import('@/components/Topicsall')
const Chatdecoration= () =>import('@/components/Chatdecoration')
const Softchat= () =>import('@/components/Softchat')
const Chataboutlife= () =>import('@/components/Chataboutlife')
const Chataboutfamily= () =>import('@/components/Chataboutfamily')


const Topicdetail= () =>import('@/components/Topicdetail')
const Successfully= () =>import('@/components/Successfully')

Vue.use(Router)

const routes = [
  {
    path: '/',
    name: 'Root',
    redirect: '/bootpage'
  }, {
    path: '*',
    name: 'Error',
    redirect: '/home'
  }, {
    path: '/bootpage',
    name: 'Bootpage',
    components: {
		default: Bootpage
	}
  }, {
    path: '/login',
    name: 'Login',
    components: {
		default: Login
	}
  }, {
    path: '/register',
    name: 'Register',
    components: {
	    default: Register
	}
  }, {
    path: '/changepass',
    name: 'Changepass',
    components: {
		default: Changepass
	}
  }, {
    path: '/home',
    name: 'Home',
    components: {
		default: Home,
		Foot: Footer
	}
  },{
    path: '/grow',
    name: 'Grow',
    components: {
		default: Grow,
		Foot: Footer
	}
  }, {
    path: '/growdetails',
    name: 'Growdetails',
    components: {
		default: Growdetails,
		Foot: Footer
	}
  }, { 
    path: '/goodsdetail',
    name: 'Goodsdetail',
    components: {
		default: Goodsdetail,
		Foot: Footer
	}
  }, {
    path: '/lookpic',
    // name: 'Lookpic',
    components: {
			default: Lookpic,
			Foot: Footer
		},
		children:[
			{
				path: '',
				name: 'lookpicdefault',
				redirect: '/lookpic/space'
			}, {
				path: 'space',
				name: 'Space',
				components: {
					default: Space
				}
			}, {
				path: 'style',
				name: 'Style',
				components: {
					default: Style
				}
			}, {
				path: 'hardclo',
				name: 'Hardclo',
				components: {
					default: Hardclo
				}
			}, {
				path: 'softloa',
				name: 'Softloa',
				components: {
					default: Softloa
				}
			}, {
				path: 'hottest',
				name: 'Hottest',
				components: {
					default: Hottest
				}
			}
		]
}, {
    path: '/build',
    name: 'Build',
    components: {
			default: Build,
			Foot: Footer
		}
}, {
    path: '/builddetail',
    name: 'Builddetail',
    components: {
		default: Builddetail,
		Foot: Footer
	}
  }, {
    path: '/shop',
    name: 'Shop',
    components: {
		default: Shop,
		Foot: Footer
	}
  }, {
    path: '/novice',
    name: 'Novice',
    components: {
		default: Novice
	}
  }, {
    path: '/mustsee',
    name: 'Mustsee',
    components: {
		default: Mustsee
	}
  }, {
    path: '/user',
    name: 'User',
    components: {
		default: User,
		Foot: Footer
	}
  }, {
	path: '/userinfo',
	name: 'UserInfo',
	components: {
		default: UserInfo,
		Foot: Footer
	}
  }, {
	path: '/collection',
	name: 'Collection',
	components: {
		default: Collection,
		Foot: Footer
	}
  }, {
	path: '/cart',
	name: 'Cart',
	components: {
		default: Cart
	}
  }, {
	path: '/comment',
	name: 'Comment',
	components: {
		default: Comment
	}
  }, {
	path: '/cartlist',
	name: 'Cartlist',
	components: {
		default: Cartlist
	}
  }, {
	path: '/payment',
	name: 'Payment',
	components: {
		default: Payment
	}
  }, {
	path: '/shipped',
	name: 'Shipped',
	components: {
		default: Shipped
	}
  }, {
	path: '/received',
	name: 'Received',
	components: {
		default: Received
	}
  }, {
	path: '/evaluated',
	name: 'Evaluated',
	components: {
		default: Evaluated
	}
  }, {
	path: '/orderdetails',
	name: 'Orderdetails',
	components: {
		default: Orderdetails
	}
  }, {
	path: '/usercomment',
	name: 'Usercomment',
	components: {
		default: Usercomment
	}
  }, {
	path: '/immediate',
	name: 'Immediate',
	components: {
		default: Immediate
	}
  }, {
	path: '/buildstatus',
	name: 'Buildstatus',
	components: {
		default: Buildstatus,
		Foot: Footer
	}
  }, {
	path: '/focus',
	name: 'Focus',
	components: {
		default: Focus
	}
  }, {
	path: '/card',
	name: 'Card',
	components: {
		default: Card
	}
  }, {
	path: '/designer',
	name: 'Designer',
	components: {
		default: Designer
	}
  }, {
	path: '/designercheck',
	name: 'Designercheck',
	components: {
		default: Designercheck
	}
  }, {
	path: '/setup',
	name: 'Setup',
	components: {
		default: Setup
	}
  }, {
	path: '/constructor',
	name: 'Constructor',
	components: {
		default: Constructor,
		Foot: Footer
	}
  }, {
	path: '/special',
	// name: 'Special',
	components: {
		default: Special,
		Foot: Footer
	},
	children: [
		{
			path: '',
			name: 'specialdefault',
			redirect: '/special/specialall'
		}, {
			path: 'specialall',
			name: 'Specialall',
			components: {
				default: Specialall
			}
		}, {
			path: 'spaceinsp',
			name: 'Spaceinsp',
			components: {
				default: Spaceinsp
			}
		}, {
			path: 'hotspot',
			name: 'Hotspot',
			components: {
				default: Hotspot
			}
		}, {
			path: 'hotyear',
			name: 'Hotyear',
			components: {
				default: Hotyear
			}
		}
	]
}, {
	path: '/topic',
	components: {
		default: Topic,
		Foot: Footer
	},
	children:[
		{
			path: '',
			name: 'topicdefault',
			redirect: '/topic/topicsall'
		}, {
			path: 'topicsall',
			name: 'Topicsall',
			components: {
				default: Topicsall
			}
		}, {
			path: 'chatdecoration',
			name: 'Chatdecoration',
				components: {
					default: Chatdecoration
				}
		}, {
			path: 'softchat',
			name: 'Softchat',
				components: {
					default: Softchat
				}
		}, {
			path: 'chataboutlife',
			name: 'Chataboutlife',
				components: {
					default: Chataboutlife
				}
		}, {
			path: 'chataboutfamily',
			name: 'Chataboutfamily',
				components: {
					default: Chataboutfamily
				}
		}
	]
  }, {
	path: '/topicdetail',
	name: 'Topicdetail',
		components: {
			default: Topicdetail,
			Foot: Footer
		}
  }, {
	path: '/successfully',
	name: 'Successfully',
	components: {
		default: Successfully,
		Foot: Footer
	}
  }, {
	path: '/settel',
	name: 'Settel',
	components: {
		default: Settel
	}
  }, {
	path: '/setbank',
	name: 'Setbank',
	components: {
		default: Setbank
	}
  }, {
	path: '/setaddress',
	name: 'Setaddress',
	components: {
		default: Setaddress
	}
  }, {
	path: '/adres',
	name: 'Adres',
	components: {
		default: Adres
	}
  }, {
		path: '/posting',
		name: 'Posting',
		components: {
			default: Posting
		}
		}
]
const router = new Router({
  // mode: 'history',
  routes
})
export default router
